package com.hongxun.design.sqlite.bean;

import android.os.Parcel;
import android.os.Parcelable;

//拉线bean
public class PointLaXian implements Parcelable {
    private String lxname;
    private double lat;
    private double lng;
    private String pointID;

    public PointLaXian() {
    }


    protected PointLaXian(Parcel in) {
        lxname = in.readString();
        lat = in.readDouble();
        lng = in.readDouble();
        pointID = in.readString();
    }

    public static final Creator<PointLaXian> CREATOR = new Creator<PointLaXian>() {
        @Override
        public PointLaXian createFromParcel(Parcel in) {
            return new PointLaXian(in);
        }

        @Override
        public PointLaXian[] newArray(int size) {
            return new PointLaXian[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(lxname);
        dest.writeDouble(lat);
        dest.writeDouble(lng);
        dest.writeString(pointID);
    }

    public String getLxname() {
        return lxname;
    }

    public void setLxname(String lxname) {
        this.lxname = lxname;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public String getPointID() {
        return pointID;
    }

    public void setPointID(String pointID) {
        this.pointID = pointID;
    }
}
